package org.dhy.elasticsearch.annotate;

import org.elasticsearch.search.sort.SortOrder;

import java.lang.annotation.*;

/**
 * @author longye
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SortBy {
    /**
     * 默认排序
     * @return
     */
    SortOrder order() default SortOrder.DESC;

}
